find_package(Qt4 4.6 REQUIRED QtCore QtGui QtOpenGL)
include(${QT_USE_FILE})

find_package(OpenSceneGraph REQUIRED osgViewer)

set(srcs
	QOSGWidget.cpp
	OsgSceneMarkers.cpp
	ColourMap.cpp
)
set(hdrs
	QOSGWidget.hpp
)

set(moc_hdrs)
foreach (hdr ${hdrs})
   list(APPEND moc_hdrs "../../include/btl/extra/Gui/${hdr}")
endforeach()
QT4_WRAP_CPP(srcs ${moc_hdrs})

include_directories(
   ${OPENSCENEGRAPH_INCLUDE_DIRS}
)

add_library(BtlExtraGui STATIC ${srcs})
set_target_properties(BtlExtraGui PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(BtlExtraGui
	${BTL2_LIBRARIES}
	${QT_LIBRARIES}
   ${OPENSCENEGRAPH_LIBRARIES}
)
